home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / Shareware Plus / Applications / FM Export Cleaner 1.0.0 / ReadMe - FM Export Cleaner < prev   
Encoding:
Text File  |  1997-02-04  |  6.0 KB  |  99 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Briefly:
  8.      FM Export Cleaner is a FreeWare drag & drop utility that makes FileMaker Pro® text exports more readable so you don't have to do any finds & replaces in a word processor.
  9.  
  10. Before: here's a FileMaker Pro tab-separated text export (of six fields from two records)  before using FM Export Cleaner:
  11. Samuel Herschbein    5847 NE 75th #218    Seattle, WA  98115    Home: 206-524-3109    Fax: 206-524-3109    E-Mail: CyborgSam@aol.com
  12. Samuel Herschbein    University of Washington    Box 351750    Seattle, WA  98195-1750    Work: 206-616-8646    Fax: 206-543-3778    E-Mail: sam@cheme.washington.edu
  13.  
  14. After: the same file after using FM Export Cleaner:
  15. Samuel Herschbein
  16. 5847 NE 75th #218
  17. Seattle, WA  98115
  18. Home: 206-524-3109
  19. Fax: 206-524-3109
  20. E-Mail: CyborgSam@aol.com
  21.  
  22. Samuel Herschbein
  23. University of Washington
  24. Box 351750
  25. Seattle, WA  98195-1750
  26. Work: 206-616-8646
  27. Fax: 206-543-3778
  28. E-Mail: sam@cheme.washington.edu
  29.  
  30. Table of Contents: 
  31.      How to Use It
  32.      Why is it needed and what does it do?
  33.      FileMaker Scripting for automatic operation & an example
  34.      Contacting the author
  35.      Version History
  36.      Legalities
  37.  
  38. How to Use It
  39.      To use FM Export Cleaner, drop a Tab-Separated Text export file created by FileMaker Pro onto FM Export Cleaner's icon.  The file's text will be converted to a more readable format.  Warning: the contents of the file are changed without user interaction.
  40.  
  41.      FM Export Cleaner can also be double-clicked and then operated using its File menu.  Limited balloon help is available.  FM Export Cleaner is Apple Event aware and works with FileMaker Pro's scripting.
  42.  
  43. Why is it needed and what does it do?
  44.      FileMaker Pro exports tab-separated text files using the following format:  Records are separated by returns.  Fields within a record are separated by horizontal tabs (the tab  key's character).  Any returns present within a field are converted to vertical tabs.  A vertical tab is an “unprintable” character not found on the keyboard.
  45.      This format is easy for other applications like spreadsheets and databases to understand.  For printed directories, page layout applications, etc., this format looks weird and is hard to work with.  At least three find & replace steps are needed to change this format to readable text, a tedious and error prone process.
  46.      FM Export Cleaner converts the format for you.  A text file's returns are converted to two consecutive returns, so that records are separated by blank lines.  Horizontal tabs are converted to returns, so that each field is placed on a separate line.  Vertical tabs are converted to returns, so that fields that have returns in FileMaker again have them in the text file.  This format looks much better and is easier to work with in word processors.
  47.  
  48. FileMaker Scripting for automatic operation:
  49.      You can use FileMaker's scripting to run FM Export Cleaner.  Below is an example of setting up a script that exports using the same file name each time.  Follow the steps carefully…
  50.  
  51. First Step: Export some data once
  52. • Drag FileMaker's File menu down to Import/Export and then over to Export Records…
  53. • Set the Type: popup menu to Tab-Separated Text.
  54. • Specify a file name that makes sense and can be overwritten (e.g. My FM Text Export) and then click the Save button.  If asked to replace an existing file: you should know what to do………
  55. • In the dialog box that appears, put the fields you want to export in the order you want in the right column.  In my database I selected a single calculation field named DirectoryInfo.
  56. • Check the Don't format output radio button.
  57. • Click the Export button.
  58.  
  59. Second Step: Create the Script
  60. • The only two steps discussed here are the Export Records and the Send Apple Event, add any other steps you need.
  61. • Create a script, then click the Clear All button.
  62. • In the Available Steps list, double-click the Export Records item.
  63. • Check the Restore export order and the Perform without dialog checkboxes.
  64. • Click the Specify File… button.
  65. • In the dialog box that appears, set the Type: popup menu to Tab-Separated Text.
  66. • Type in the same file name that you saved in the first step above.
  67. • Click the Save button, when asked to “Replace existing…”, click the Replace button.
  68. • In the Available Steps list, double-click the Send Apple Event item.
  69. • Click the Specify button.
  70. • Click the Specify Application button.
  71. • Navigate the file dialog box to where the FM Export Cleaner application resides, then double-click its icon/name.
  72. • Change the popup menu so it says: Send the Open Document event with:
  73. • Click the Document radio button.
  74. • Click the Specify File… button.
  75. • In the dialog box that appears, click on the file's name that you saved above, then click the Open button.
  76. • Check the Bring target application to foreground checkbox (optional, my preference).
  77. • Check the Wait for event completion before continuing checkbox (optional, my preference).
  78. • Click OK, click OK, then click Done.
  79.  
  80.      If you get any errors, check to make sure you did each step correctly.
  81.      If FM Export Cleaner hangs with a -1701 error, use -option -esc to force it to quit, no harm will be done to either the text file or FM Export Cleaner.  A -1701 error means a mistake was made in the Send Apple Event steps.
  82.  
  83. Contacting the author:
  84. Samuel Herschbein
  85. CyborgSam@aol.com
  86. http://members.aol.com/CyborgSam
  87.  
  88. Version History:
  89. 1.0.0 - 02/05/97 - First release.
  90.  
  91. Legalities:
  92.      FM Export Cleaner is ©1997 by Samuel Herschbein.  Parts are © by Metrowerks.  FM Export Cleaner was built using Metrowerks CodeWarrior 10 Pascal and is based on DropShell 2.0, distributed with CodeWarrior 10.  Many thanks to the authors of DropShell.
  93.      FM Export Cleaner is FreeWare.  FM Export Cleaner may be freely distributed, but you cannot charge for it (other than actual media costs).  If you distribute FM Export Cleaner, you MUST include this ReadMe file.  Failure to obey these restrictions will result in bad karma and you'll owe me a big box of Godiva® chocolates.
  94.  
  95.      As if you need to be told:  FileMaker Pro® is a registered trademark of Claris Inc.  CodeWarrior® is a registered trademark of Metrowerks.  Microsoft Word® is a registered trademark of Microsoft.
  96.  
  97.  
  98.  
  99.